package cn.kgc.javaweb.service;

import cn.kgc.javaweb.entity.User;
import cn.kgc.javaweb.utils.ResponseResult;

/**
 * @author: mosin
 * @version: v1.0  2022/9/8
 * 用户的业务层操作
 */
public interface UserService {

    Boolean selectByUsername(String username);

    void register(String username, String password);

    User selectByUsernameAndPassword(String username, String password);

    ResponseResult selectAll();

    void add(User user);

    void delete(int id);

    User selectUpdateUser(String username);

    void updateUser(User user);

    ResponseResult selectByPage(Integer page, Integer size);

    void updateImg(Integer userId, String lastName);
}
